

package com.zdkj.subway.epm.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.zdkj.subway.epm.util.LocalDateTimeConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 票务设备异常管理
 *
 * @author cuilei
 * @date 2020-05-26 15:05:54
 */
@Data
@TableName("sw_ex_device_fault")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "票务设备异常管理")
public class SwExDeviceFault extends Model<SwExDeviceFault> {
    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @TableId
    @ApiModelProperty(value = "唯一标识")
    @ExcelProperty(value = "序号")
    private Integer id;
    /**
     * 设备类型
     */
    @ApiModelProperty(value = "设备类型")
    @ExcelIgnore
    private String deviceType;
    /**
     * 设备编号
     */
    @ApiModelProperty(value = "设备编号")
    @ExcelProperty(value = "设备编号")
    private String deviceOrder;
    /**
     * 故障问题
     */
    @ApiModelProperty(value = "故障问题")
    @ExcelProperty(value = "故障问题")
    private String faultProblem;
    /**
     * 故障原因
     */
    @ApiModelProperty(value = "故障原因")
    @ExcelProperty(value = "故障原因")
    private String faultReason;
    /**
     * 故障报修人
     */
    @ApiModelProperty(value = "故障报修人")
    @ExcelProperty(value = "故障报修人")
    private String handlePersonName;
    /**
     * 处理人工号
     */
    @ApiModelProperty(value = "报修人工号")
    @ExcelProperty(value = "报修人工号")
    private String handlePersonCode;
    /**
     * 复核人
     */
    @ApiModelProperty(value = "维修人员")
    @ExcelProperty(value = "维修人员")
    private String reviewerName;
    /**
     * 复核人工号
     */
    @ApiModelProperty(value = "维修人员工号")
    @ExcelProperty(value = "维修人员工号")
    private String reviewerCode;
    /**
     * 故障发生时间
     */
    @ApiModelProperty(value = "故障发生时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "故障发生时间", converter = LocalDateTimeConverter.class)
    private LocalDateTime faultTime;
    /**
     * 故障发生时间
     */
    @ApiModelProperty(value = "故障发生时间yyyy-MM-dd")
    @TableField(exist = false)
    private String faultTimeDto;
    /**
     * 故障修复时间
     */
    @ApiModelProperty(value = "故障修复时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "故障修复时间", converter = LocalDateTimeConverter.class)
    private LocalDateTime repairTime;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = "备注")
    private String remark;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备件更换记录")
    @ExcelProperty(value = "备件更换记录")
    private String replaceRecord;
    /**
     * 部门ID
     */
    @ApiModelProperty(value = "部门ID")
    @ExcelIgnore
    private Integer deptId;
    /**
     * 创建人ID
     */
    @ApiModelProperty(value = "创建人ID")
    @ExcelIgnore
    private Integer creatorId;
    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    @ExcelIgnore
    private String creatorName;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @ExcelIgnore
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @ExcelIgnore
    private LocalDateTime updateTime;
    /**
     * 删除标志
     */
    @TableLogic
    @ExcelIgnore
    private String delFlag;
}
